package com.zcp.todayheadline;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;
import org.xutils.x;

@ContentView(R.layout.activity_search)
public class SearchActivity extends AppCompatActivity implements View.OnClickListener {

    @ViewInject(R.id.search_imageBack)
    ImageView search_imageBack;

    @ViewInject(R.id.search_linSearch)
    LinearLayout search_linSearch;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        x.view().inject(this);
        search_imageBack.setOnClickListener(this);
        search_linSearch.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.search_imageBack:
                onBackPressed();
                break;
            case R.id.search_linSearch:
                break;
        }
    }
}
